<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--conf
<sample>
	<product version="1.0" edition="std"/>
	<modifications>
		<modified date="080205"/>
	</modifications>
<sampledescription><![CDATA[ ]]></sampledescription></sample>
 --> 

<html>
<head>
	<title>Moving items between DataViews</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
  
<body>
	<h1>Moving items between DataViews</h1>
	<table border="0" cellspacing="5" cellpadding="5">
		<tr><td>
			<div id="data_container1" style="border:1px solid #A4BED4; background-color:white;width:400px;height:396px;"></div>				
		</td><td>
			<input type="button" name="" value="move ->" onclick="data1.move(data1.getSelected(), 0, data2)"><br>
			<input type="button" name="" value="<- move" onclick="data2.move(data2.getSelected(), 0, data1)">
		</td><td>
			<div id="data_container2" style="border:1px solid #A4BED4; background-color:white;width:400px;height:396px;"></div>				
		</td></tr>				
	</table>

	<script>
		data1 = new dhtmlXDataView({
			container:"data_container1",
			type:{
				template:"#Package# : #Version#<br/>#Maintainer#",
				height:40
			},
			select:true
		});
		data1.load("../common/data.xml");
		
		
		data2 = new dhtmlXDataView({
			container:"data_container2",
			type:{
				template:"#Package# : #Version#<br/>#Maintainer#",
				height:40
			},
			select:true
		});
		//data2.load("../common/data2.xml");
	</script>
</body>
</html>

